﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ShoppingOrderPage.aspx.cs" Inherits="XinBang.Web.ShoppingOrderPage" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderPlaceHolder" runat="server">
<link href="Style/ShoppingCart.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BrowseRecordPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainPlaceHolder" runat="server">
    <!--lineAfterTop -->
    <div id="goodsOrder">
    	<div class="goodsOrderTiltle">
            我的当前订单
        </div>
        <asp:GridView ID="currentOrder" CssClass="goodsOrder" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="Ordid" HeaderText="订单编号" ReadOnly="True" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="OrderTime" HeaderText="订货时间" DataFormatString="{0:d}" NullDisplayText="未确认" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="OrderValue" HeaderText="商品价格" DataFormatString="{0:c}" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="PayTime" HeaderText="支付时间" DataFormatString="{0:d}" NullDisplayText="未支付" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="PayValue" HeaderText="付款" DataFormatString="{0:c}" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="SendTime" HeaderText="发货时间" DataFormatString="{0:d}" NullDisplayText="未发货" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="ReceiveTime" HeaderText="到货时间" DataFormatString="{0:d}" NullDisplayText="未到货" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="查看订单明细">
                    <ItemTemplate>
                        <asp:HyperLink ID="shoppingRecord" NavigateUrl='<%# Eval("Ordid", "~/ShoppingRecordPage.aspx?id={0}") %>' runat="server">查看</asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                您还没有任何订单。
            </EmptyDataTemplate>
        </asp:GridView>
        <div>
            <asp:HiddenField ID="goodsPrice" runat="server" />
            选择发货方式:<asp:DropDownList ID="sendMethod" runat="server" AutoPostBack="True" OnSelectedIndexChanged="sendMethod_SelectedIndexChanged">
            </asp:DropDownList>
            运送费用:<asp:Label ID="sendCost" runat="server" Text="0"></asp:Label>
            订单总费用:<asp:Label ID="amountCost" runat="server" Text="0"></asp:Label>
            <asp:Button ID="confirm" runat="server" Text="确认订单" OnClick="confirm_Click" /> 
            <asp:Button ID="topay" runat="server" Text="去支付" />
        </div>
        <!-- goodsOrderTiltle-->
        <div class="goodsOrderTiltle">
            我的以往订单
        </div>
        <asp:GridView ID="shoppingOrderList" CssClass="goodsOrder" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="Ordid" HeaderText="订单编号" ReadOnly="True" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="OrderTime" HeaderText="订货时间" DataFormatString="{0:d}" NullDisplayText="订单未确认" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="OrderValue" HeaderText="商品价格" DataFormatString="{0:c}" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="PayTime" HeaderText="支付时间" DataFormatString="{0:d}" NullDisplayText="未付款" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="PayValue" HeaderText="付款" DataFormatString="{0:c}" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="SendTime" HeaderText="发货时间" DataFormatString="{0:d}" NullDisplayText="未发货" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="ReceiveTime" HeaderText="到货时间" DataFormatString="{0:d}" NullDisplayText="未到货" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="查看订单明细">
                    <ItemTemplate>
                        <asp:HyperLink ID="shoppingRecord" Target="_blank" NavigateUrl='<%# Eval("Ordid", "~/ShoppingRecordPage.aspx?id={0}") %>' runat="server">查看</asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                您还没有任何订单。
            </EmptyDataTemplate>
        </asp:GridView>
        <!-- goodsOrderTiltle-->
        <!--goodsOrderDetail -->
        <!--goodsOrder -->
    </div>
</asp:Content>
